package com.jiangong.service.impl;

import com.jiangong.dao.GenerateElectricityDao;
import com.jiangong.entity.PowerGenerationSystem1;
import com.jiangong.entity.PowerGenerationSystem2;
import com.jiangong.entity.PowerGenerationSystem3;
import com.jiangong.service.GenerateElectricityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GenerateElectricityServiceImpl implements GenerateElectricityService {
    @Autowired
    private GenerateElectricityDao generateElectricityDao;
    @Override
    public List<PowerGenerationSystem1> findAll() {
        List<PowerGenerationSystem1> list = generateElectricityDao.findAll();
        return list;
    }

    @Override
    public List<PowerGenerationSystem2> IrrationTotal() {
        List<PowerGenerationSystem2> list = generateElectricityDao.IrrationTotal();
        return list;
    }

    @Override
    public List<PowerGenerationSystem2> IrrationTotal30() {
        List<PowerGenerationSystem2> list = generateElectricityDao.IrrationTotal30();
        return list;
    }

    @Override
    public List<PowerGenerationSystem3> powerTotal24() {
        List<PowerGenerationSystem3> list = generateElectricityDao.powerTotal24();
        return list;
    }
}
